import React,{useState} from "react";
import {Button} from 'antd';
import MarkDownView from "../../../../components/MarkDownView/MarkDownView";
import useStateStudy from './UseStateStudy.md';

let UseStateStudy=props=>{
    let [count,setCount] = useState(0);

    return (
        <div>
            <span>{count}</span>
            <Button onClick={()=>setCount(++count)} className='ml20 mb20'>自增加</Button>
            <MarkDownView mdContent={useStateStudy} />
        </div>
    );
};
export default UseStateStudy;